package upload;


import javax.servlet.http.HttpServletRequest;

/**
 * 
 * @author CSDN
 *
 */
public class UploadMonitor {
	
    public UploadInfo getUploadInfo() {
        HttpServletRequest request = WebContextFactory.get().getHttpServletRequest();
        if (request.getSession().getAttribute("uploadInfo") != null) {
            return (UploadInfo) request.getSession().getAttribute("uploadInfo");
        } else {
            return new UploadInfo();
        }
    }
    
}
